<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/1
 * Time: 15:20
 */
class GetMsgStrategyFactory
{
    private function __construct()
    {


    }

    public static function builds($type,$limit=100,$strategy='default')
    {

        switch ($strategy)
        {
            case 'person':
                return new PersonGetMsgStrategy($type, $limit);
                break;
            default:
                return new DefaultGetMsgStrategy($type, $limit);
                break;
        }

    }

}